package com.example.spring.design.composite.lucency;

/**
 * @author: orange
 * @create: 2023-08-20 00:06
 * @description: 地图
 */
public class MapC extends AbstractCommodity {
    private final double price = 9.9;
    private int num;

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    double getPrice() {
        return this.price;
    }

    @Override
    int getNum() {
        return this.num;
    }
}
